package com.epam.iunna.bookshop.model;

import java.math.BigDecimal;

public class Item {

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Long getYear() {
        return year;
    }

    public void setYear(Long year) {
        this.year = year;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Long getRating() {
        return rating;
    }

    public void setRating(Long rating) {
        this.rating = rating;
    }

    public Long getSold() {
        return sold;
    }

    public void setSold(Long sold) {
        this.sold = sold;
    }

    public Long getSheetsNum() {
        return sheetsNum;
    }

    public void setSheetsNum(Long sheetsNum) {
        this.sheetsNum = sheetsNum;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Long getQuantityAvaliable() {
        return quantityAvaliable;
    }

    public void setQuantityAvaliable(Long quantityAvaliable) {
        this.quantityAvaliable = quantityAvaliable;
    }

    public Boolean getDeleted() {
        return this.deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "Item [id=" + id + ", name=" + name + ", description="
                + description + ", author=" + author + ", year=" + year
                + ", price=" + price + ", genre=" + genre + ", publisher="
                + publisher + ", rating=" + rating + ", sold=" + sold
                + ", sheetsNum=" + sheetsNum + ", lang=" + lang + ", cover="
                + cover + ", quantityAvaliable=" + quantityAvaliable + "]";
    }

    private Long id;
    private String name;
    private String description;
    private String author;
    private Long year;
    private BigDecimal price;
    private String genre;
    private String publisher;
    private Long rating;
    private Long sold;
    private Long sheetsNum;
    private String lang;
    // path to file /images/img1.jpg
    private String cover;
    private Long quantityAvaliable;
    private Boolean deleted;

}
